/*
 * MoverMotor.java
 *
 * Created on 23 de julio de 2007, 02:38 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package taladro;

import java.util.Properties;
import taladro.maquina.Maquina;
import java.io.*; 

/**
 *
 * @author Administrator
 */
public class MoverMotor {
    
    /** Creates a new instance of MoverMotor */
    public MoverMotor() {
    }
    
    public static void main(String[] args) {

        Properties prop = new Properties();        
        Maquina maquina = new Maquina();
        try
        {
            //prop.save( new FileOutputStream ( new File ( "maquina.properties" )  ), "Comentario" );
            //prop.load( new FileInputStream ( new File ( "maquina.properties" )  ) );
            //String val = prop.getProperty( "retardo.vel_inicial" );
            //System.out.println("Valor " + val);
            //maquina.getColumna().moverPuntoCero();
            //maquina.getMesa().moverPuntoCero();
            
            System.out.println("Inicio --- " +  java.util.Calendar.getInstance().getTimeInMillis() );
            //maquina.getMesa().moverEnLineaRecta2(5,5);
            maquina.getColumna().moverPuntoCero();
            System.out.println("Fin------- " +  java.util.Calendar.getInstance().getTimeInMillis() );
            
            /*System.out.println("Inicio --- " +  java.util.Calendar.getInstance().getTimeInMillis() );
            maquina.getMesa().moverEnLineaRecta(0.0,0.0);
            System.out.println("Fin------- " +  java.util.Calendar.getInstance().getTimeInMillis() );*/
            
            //maquina.getMesa().mover(0,10);
            //maquina.getColumna().getContMotor().moverPosCero();
            //maquina.getColumna().getContMotor().mover(0.1);
            //maquina.getColumna().getContMotor().join();
        }
        catch(Exception e )
        {
            System.out.println(e.getMessage());
            e.printStackTrace();
        }
        
    }
    
}
